﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebSocketSharp;

namespace BestClient
{
    public interface ClientProcessorCallBack
    {

        /**
         * Channel to open the processor (usually deal with some initialization information)
         *
         * @param client ClientMessageInteract
         */
        void afterOpen(ClientMessageInteract client);

        /**
         * receive message from server
         *
         * @param msg message  from server
         */
        void afterReceiveMsg(MessageEventArgs msg);

        /**
         * when server close
         */
        void afterClose(CloseEventArgs e);

    }
}
